package com.example.competionmanagebackend.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.competionmanagebackend.entity.Announcements;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author Rui
 * @description 针对表【announcements】的数据库操作Service
 * @createDate 2025-03-25
 */
public interface AnnouncementsService extends IService<Announcements> {
    // 分页查询公告
    Page<Announcements> getAnnouncementsPage(int currentPage, int pageSize);

    // 新增公告
    void insertAnnouncement(Announcements announcement);

    // 编辑公告
    void updateAnnouncement(Announcements announcement);

    // 删除公告
    void deleteAnnouncement(Integer id);
}